﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PraxisRent.Entities;
using PraxisRent.Repository;
using Microsoft.Practices.Unity;

namespace PraxisRent.BL
{
    public class TelefonoPersonaBL:ITelefonoPersonaBL
    {
        [Dependency]
        public ITelefonoPersonaRepository telfPersonaDAO { get; set; }

        public List<TELEFONO_PERSONA> GetAllFromTelefonoPersona()
        {
            return telfPersonaDAO.GetAllFromTelefonoPersona();
        }

        public List<TELEFONO_PERSONA> GetAllFromTelefonoPersonaByDniPersona(string dni)
        {
            return telfPersonaDAO.GetAllFromTelefonoPersonaByDniPersona(dni);
        }
    }
}
